package edu.ccut.saturn.basecomponent.database.impl.db2.builder;

import edu.ccut.saturn.basecomponent.database.ISaturnSQL;
import edu.ccut.saturn.basecomponent.database.SaturnSQLBuilderFactory;
import edu.ccut.saturn.basecomponent.database.impl.AbstractUpdateSQLBuilder;
import edu.ccut.saturn.component.IDataItem;

public class DB2UpdateLOBSQLBuilder extends AbstractUpdateSQLBuilder {

	@Override
	protected String getSetValueString(IDataItem iDataItem, Object value) {
		StringBuffer setValueString = new StringBuffer();
		return setValueString.append(iDataItem.getColumn()).append("=?").toString();
	}

	@Override
	protected String getDatabaseType() {
		return SaturnSQLBuilderFactory.DB2;
	}

	@Override
	protected String getOperationType() {
		return ISaturnSQL.UPDATE_LOB_OPERATION;
	}
}
